import request from '@/utils/request'
// 创建信息
export function company_add(data) {
  return request({
    url: '/mbacms/authority',
    method: 'post',
    data: data
  })
}
export function company_get(id) {
  return request({
    url: '/mbacms/authority/'+id,
    method: 'get',
  })
}
export function companyList(query) {
  return request({
    url: '/mbacms/authority/list',
    method: 'get',
    params: query
  })
}
export function company_update(data) {
    return request({
      url: '/mbacms/authority',
      method: 'put',
      data: data
    })
  }
  export function company_delete(deptId) {
    return request({
      url: '/mbacms/authority/' + deptId,
      method: 'delete'
    })
  }
  export function company_sure(data) {
    return request({
      url: '/company/examine/and/approve',
      method: 'post',
      data: data
    })
  }